//函数节流
export function ThroTtle(fnc,delay){
   let timer=null;
   return function(){
       if(timer){
           return
       }
       timer=setTimeout(()=>{
         fnc.apply(this,arguments);
         timer=null;
       },delay)   
   }
}